package com.pretty.adminapp.controller;

//import com.pretty.adminapp.service.NounClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * 类描述：
 * 创建者：袁越
 * 创建日期：2017/4/2
 * 创建时间：12:37
 * Copyright:版权
 * © 2016-2020 上海金扳手科技信息股份有限公司 All rights reserved.
 */
@RestController
public class SentenceController {

//    @Autowired
//    private NounClient nounClient;
    @RequestMapping("/sentence")
    public @ResponseBody
    String getSentence() {
        return
                "<h3>造句:</h3><br/>" +
                        buildSentence() + "<br/><br/>" +
                        buildSentence() + "<br/><br/>" +
                        buildSentence() + "<br/><br/>" +
                        buildSentence() + "<br/><br/>" +
                        buildSentence() + "<br/><br/>"
                ;
    }
    public String buildSentence() {
        String sentence = "There was a problem assembling the sentence!";
        try{
//            sentence =  nounClient.getWord().getBody();
        } catch ( Exception e ) {
            System.out.println(e);
        }
        return sentence;
    }

}
